package com.bobo.service.message;

import com.bobo.dto.Page;
import com.bobo.model.Message;

import java.util.List;

/**
 * Created by bobo on 16-10-29.
 */
public interface IMessageService {

    public Integer create(Message message);

    public boolean del(Integer id);

    public Boolean upd(Message message);

    public Message getById(Integer id);

    public Page<Message> getMessagesByTopic(Integer topicId, Integer current, Integer pageSize, Integer status);

    public Page<Message> getMessagesByUser(Integer userId,Integer current, Integer pageSize, Integer status);

    public Page<Message> getMessages(Integer current, Integer pageSize, Integer status);
}
